package com.itheima.pojo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @version 1.0
 * @description 说明
 * @package com.itheima.pojo
 */
@Data
public class ChangePasswordParam {
    @NotBlank(message = "原密码不能为空！")
    @Size(min = 6,max = 20, message = "原密码长度必须在6-20之间!")
    private String password;
    @NotBlank(message = "新密码不能为空！")
    @Size(min = 6,max = 20, message = "新密码长度必须在6-20之间!")
    private String newpassword;
}
